package com.project.JunM.service.impl;

import com.project.JunM.entity.SGatherDetails;
import com.project.JunM.mapper.SGatherDetailsMapper;
import com.project.JunM.service.SGatherDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SGatherDetailsServiceImpl implements SGatherDetailsService {

    @Autowired
    private SGatherDetailsMapper sGatherDetailsMapper;

    @Override
    public int insertSelective(SGatherDetails record) {
        return sGatherDetailsMapper.insertSelective(record);
    }

    @Override
    public List<SGatherDetails> querySGatherDetailsAll(Integer parentId) {

        List<SGatherDetails> sGatherDetails = sGatherDetailsMapper.querySGatherDetailsAll(parentId);

        return sGatherDetails;
    }

    @Override
    public List<SGatherDetails> querySGatherDetailsCheckInAll(Integer parentId) {
        return sGatherDetailsMapper.querySGatherDetailsCheckInAll(parentId);
    }

    @Override
    public int updateSGatherDetailsByProductId(SGatherDetails record) {
        return sGatherDetailsMapper.updateSGatherDetailsByProductId(record);
    }

    @Override
    public SGatherDetails selectByProductId(SGatherDetails sGatherDetails) {
        return sGatherDetailsMapper.selectByProductId(sGatherDetails);
    }

    @Override
    public List<SGatherDetails> querySGatherDetails(Integer parentId) {
        return sGatherDetailsMapper.querySGatherDetails(parentId);
    }

    @Override
    public SGatherDetails querySGatherDetailsByParentIdByProductId(SGatherDetails sGatherDetails) {
        return sGatherDetailsMapper.querySGatherDetailsByParentIdByProductId(sGatherDetails);
    }
}
